package com.gang.music.system.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.gang.music.system.entity.Song;

import java.util.List;

/**
 * <p>
  *  Mapper 接口
 * </p>
 *
 * @author gang
 * @since 2017-10-26
 */
public interface SongMapper extends BaseMapper<Song> {

	List<Song> findByUserId(Long userId);

	List<Song> selectWithInfo();

	Song selectWithInfoById(Long songId);
	
	List<Long> selectUserIds(Long sId);

	String queryMaxCollectAmoutSong();

	String queryMaxAmoutSong();

	Long queryTotalSongNum();
}